const {BaseDB} = require('lsd-db');
class <%=ucfirst(TABLE_NAME)%> extends BaseDB{
    constructor() {
           super();
    <% for(let i=0; i<tabal.length; i++) { %>
            <%if(tabal[i].COLUMN_KEY=='PRI'){%>this.COLUMN_KEY = '<%=tabal[i].COLUMN_NAME%>'; <%}%>
            <% if (tabal[i].COLUMN_KEY=='PRI'&&tabal[i].DATA_TYPE=='int') { %>
                this.$$<%=tabal[i].COLUMN_NAME%> = 0;
            <% } else{%>
                this.$$<%=tabal[i].COLUMN_NAME%> = "";
            <%}%> 
            
    <%}%>
            this.TABLE_NAME = '<%=TABLE_NAME%>';
    }
<% for(let i=0; i<tabal.length; i++) { %>
    get<%=ucfirst(tabal[i].COLUMN_NAME)%>(){
        return this.$$<%=tabal[i].COLUMN_NAME%>;  
    }
    set<%=ucfirst(tabal[i].COLUMN_NAME)%>(<%=tabal[i].COLUMN_NAME%>){
        this.$$<%=tabal[i].COLUMN_NAME%> = <%=tabal[i].COLUMN_NAME%>;  
    }  
<%}%>
}
module.exports = <%=ucfirst(TABLE_NAME)%>;